<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?=ADMIN_RES_PATH ?>/css/default/admin.css" rel="stylesheet" type="text/css">
<script src="<?=ADMIN_RES_PATH ?>/js/jquery-1.7.1.js" type="text/javascript"></script>
<script src="<?=ADMIN_RES_PATH ?>/js/public.js" type="text/javascript"></script>
</head>
<body>
<div id="main">
	<div class="title">板块配置</div>
	<div class="content">
        <?php
			$plate = $this->plate;
			$cates = $this->cates;
		?>
		<form method="post" action="<?=ADMIN_PATH ?>/Plate/doupdate" enctype="multipart/form-data">
			<input type="text" name="act" style="display:none" value="<?=$this->act ?>"/>
			<input type="text" name="id" style="display:none" value="<?=$plate['id'] ?>"/>
			<table width="98%" border="0" cellspacing="0" cellpadding="0" class="mytab">
		      <tr>
		        <td colspan="3" class="tit"><?=$this->title ?></td>
		        </tr>
		      <tr>
		        <td width="189" align="center">名称
		        <td width="579"><input type="text" name="name" class="inp" value="<?=$plate['name'] ?>"/></td>
		        <td width="350" align="left">&nbsp;</td>
		      </tr>
		      <tr>
		        <td align="center">排序</td>
		        <td><input type="text" name="order" class="inp" value="<?=$plate['order'] ?>"/></td>
		        <td align="left">&nbsp;</td>
		      </tr>
		  	<tr>
		        <td align="center">包含分类</td>
		        <td>
		  			<span>分类1：</span>
		  			<select name="cate1" class="select">
			  			<?php foreach ($cates as $cate) {?>
			  			<option value="<?=$cate['id'] ?>" <?php if($cate['id'] == $plate['cate1']) echo 'selected="selected"'; ?>><?=$cate['name'] ?> </option>
						<?php } ?>
		  			</select>
		  			<br/>
		  			<span>分类2：</span>
		  			<select name="cate2" class="select">
						<?php foreach ($cates as $cate) {?>
			  			<option value="<?=$cate['id'] ?>" <?php if($cate['id'] == $plate['cate2']) echo 'selected="selected"'; ?>><?=$cate['name'] ?> </option>
						<?php } ?>
		  			</select>
		  			<br/>
		  			<span>分类3：</span>
		  			<select name="cate3" class="select">
						<?php foreach ($cates as $cate) {?>
			  			<option value="<?=$cate['id'] ?>" <?php if($cate['id'] == $plate['cate3']) echo 'selected="selected"'; ?>><?=$cate['name'] ?> </option>
						<?php } ?>
		  			</select>
		  			<br/>
		  		</td>
		        <td align="left">&nbsp;</td>
		      </tr>
		      <tr>
		        <td width="189" align="center">&nbsp;</td>
		        <td width="579"></td>
		        <td width="350" align="left">&nbsp;</td>
		      </tr>
		      <tr>
		        <td width="189">&nbsp;</td>
		        <td width="579"><input type="submit" class="sub" value="提交"/>&nbsp;
		          <input name="button" type="button" onClick="javascript:history.back()" value="取消"/></td>
		        <td width="350" align="left">&nbsp;</td>
		      </tr>
		    </table>
		</form>

	</div>
</div>
</body>
</html>
